<form class="inventory" action="" method="post" novalidate="novalidate">

    <h3 class="form-title">商品添加</h3>

    <div class="form-group">
        <div class="input-group">
            <div class="input-group-addon">
                商品名称
            </div>
            <input class="form-control" type="text" autocomplete="off" placeholder="请输入商品名称" name="i_name"/>
        </div>
    </div>

    <div class="form-group">
        <div class="input-group">
            <div class="input-group-addon">
                商品类型
            </div>
            <input class="form-control" type="text" autocomplete="off" placeholder="请输入商品类型" name="type"/>
        </div>
    </div>

    <div class="form-group">
        <div class="input-group">
            <div class="input-group-addon">
                渠道价
            </div>
            <input class="form-control" type="text" autocomplete="off" placeholder="请输入进货价格" name="c_price"/>
        </div>
    </div>

    <div class="form-group">
        <div class="input-group">
            <div class="input-group-addon">
                会员价
            </div>
            <input class="form-control" type="text" autocomplete="off" placeholder="请输入会员价格" name="v_price"/>
        </div>
    </div>

    <div class="form-group">
        <div class="input-group">
            <div class="input-group-addon">
                零售价
            </div>
            <input class="form-control" type="text" autocomplete="off" placeholder="请输入零售价格" name="r_price"/>
        </div>
    </div>

    <div class="form-group">
        <div class="input-group">
            <div class="input-group-addon">
                供应商名字
            </div>
            <select class="form-control" name="s_name">
                <?php
                for ($i = 0; $data ['cname'][$i] != ""; $i++){
                    echo "<option>".$data ['cname'][$i]['c_name']."</option>";
                }
                ?>
            </select>
        </div>
    </div>

    <!--
    <div class="form-group">
        <div class="input-group">
            <div class="input-group-addon">
                商品图片
            </div>
            <input class="form-control" type="text" autocomplete="off" placeholder="请上传商品图片" name="img"/>
        </div>
    </div>
    -->

    <div class="form-actions">
        <button type="submit" class="btn btn-success">提交</button>
    </div>

    <div class="pure-form-message" style="color:#b94a48;margin-top: 10px;"><?php echo isset($data ['add_i_e']) ? $data ['add_i_e'] :'' ?></div>

</form>
